package www.xudan.android_ffmpeg;

import android.app.Application;

import www.xudan.android_ffmpeg.utils.FileUtil;

import static www.xudan.android_ffmpeg.Constance.path_copy_gif;
import static www.xudan.android_ffmpeg.Constance.path_copy_img;
import static www.xudan.android_ffmpeg.Constance.path_copy_mpg;
import static www.xudan.android_ffmpeg.Constance.path_copy_music;
import static www.xudan.android_ffmpeg.Constance.path_copy_ttf;
import static www.xudan.android_ffmpeg.Constance.path_copy_video;

/**
 * @auther XuDan on 2020/3/20.
 */
public class MyApp extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        new Thread(new Runnable() {
            @Override
            public void run() {
                FileUtil.copyAssetsToSD(MyApp.this, "test.mp4", path_copy_video);
                FileUtil.copyAssetsToSD(MyApp.this, "kaiti.ttf", path_copy_ttf);
                FileUtil.copyAssetsToSD(MyApp.this, "Refrain.mp3", path_copy_music);
                FileUtil.copyAssetsToSD(MyApp.this, "test_img.jpg", path_copy_img);
                FileUtil.copyAssetsToSD(MyApp.this, "gif7.gif", path_copy_gif);
                FileUtil.copyAssetsToSD(MyApp.this, "test2.mpg", path_copy_mpg);
            }
        }).start();

    }
}
